package ucl.cs.bank.common;

/**
 * UCLAccount Remote Interface.
 * @author  K. Bryson.
 * @version 1.0
 */

// WHY IS IT NOT GOOD TO HAVE AN INDIVIDUAL REMOTE ACCOUNT OBJECT ? //

import java.rmi.RemoteException;

public interface UCLAccount extends java.rmi.Remote  {

   void deposit(float amount) throws RemoteException;
   void withdraw(float amount) throws RemoteException;

   String getName() throws RemoteException;
   int    getNumber() throws RemoteException;
   float  getBalance() throws RemoteException;
   String getDescription() throws RemoteException;

}
